#include <tenacitas_log/level.h>

using namespace tenacitas::log;

const level level::trace( 10 );
const level level::debug( 20 );
const level level::info( 30 );
const level level::warn( 40 );
const level level::error( 50 );
const level level::critical( 60 );

int64_t tenacitas::log::th2int( boost::thread::id p_id ) {
    std::stringstream l_stream;
    l_stream << p_id;
    int64_t l_id;
    l_stream >> std::hex >> l_id;
    return l_id;


    //return static_cast<int64_t>(std::hash<boost::thread::id>()(p_id));
}


